/*    */ package com.lmpop.createIndex.search;
/*    */ 
/*    */ import com.lmpop.createIndex.searchModel.Queue;
/*    */ import com.lmpop.createIndex.searchModel.QueueValue;
/*    */ import com.lmpop.createIndex.searchModel.SearchData;
/*    */ import com.lmpop.createIndex.searchModel.SearchModel;
/*    */ import java.io.IOException;
/*    */ import java.util.ArrayList;
/*    */ import java.util.List;
/*    */ import java.util.Map;
/*    */ 
/*    */ public class KnowledgeIndexFiles
/*    */ {
/*    */   public ProperUtil properUtil;
/*    */   private String file_path;
/*    */ 
/*    */   public KnowledgeIndexFiles()
/*    */   {
/* 20 */     this.properUtil = new ProperUtil();
/* 21 */     this.file_path = this.properUtil.getFilePathByModel("knowledge");
/*    */   }
/*    */ 
/*    */   public List getKnowledgeList(Map paraMap) throws IOException
/*    */   {
/* 26 */     ArrayList knowledgeList = new ArrayList();
/* 27 */     SearchData search = new SearchData();
/* 28 */     ArrayList paraList = new ArrayList();
/*    */ 
/* 30 */     String class_attr = ""; String keyword = ""; String is_recom = ""; String in_date = ""; String order_by = "";
/* 31 */     if (paraMap.get("class_attr") != null) class_attr = paraMap.get("class_attr").toString();
/* 32 */     if (paraMap.get("order_by") != null) order_by = paraMap.get("order_by").toString();
/* 33 */     if (paraMap.get("keyword") != null) keyword = paraMap.get("keyword").toString();
/* 34 */     if (paraMap.get("is_recom") != null) is_recom = paraMap.get("is_recom").toString();
/* 35 */     if (paraMap.get("in_date") != null) in_date = paraMap.get("in_date").toString();
/*    */ 
/* 37 */     Queue queue = new Queue(new QueueValue[] { new QueueValue(order_by, 2, true) });
/* 38 */     paraList.add(new SearchModel("0", "class_attr", class_attr));
/* 39 */     paraList.add(new SearchModel("2", keyword, new String[] { "title", "keyword" }));
/* 40 */     paraList.add(new SearchModel("0", "is_recom", is_recom));
/* 41 */     paraList.add(new SearchModel("1", "in_date", in_date));
/* 42 */     knowledgeList = search.getSearchInfo(this.file_path, paraList, queue);
/* 43 */     return knowledgeList;
/*    */   }
/*    */ }

/* Location:           F:\电商\commons-utils.jar
 * Qualified Name:     com.lmpop.createIndex.search.KnowledgeIndexFiles
 * JD-Core Version:    0.6.0
 */